package org.xmatch.agenda.presentation;

import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.xmatch.agenda.business.DoctorBO;
import org.xmatch.agenda.entity.Doctor;
import org.xmatch.framework.presentation.GenericEntityListAction;

@Name("doctorListAction")
public class DoctorListAction extends GenericEntityListAction<Doctor> {
	
	
	private static final long serialVersionUID = -4992627076677905611L;
	
	public DoctorListAction(){
		this.setDataTableId("doctorSearch:pagedDataTable");
	}
	

	@In(value = "doctorBO", create = true)
	public void setBusinessService(DoctorBO bo) {
		this.businessService = bo;
	}

	public void setDoctor(Doctor doctor) {
		setInstance(doctor);
	}

	public Doctor getDoctor() {
		return getInstance();
	}
}
